package com.example.androidproject.app;

import android.app.Application;

import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;

/**
 * 作者： GG
 * 作用：整个软件
 */

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        // 初始化 OKhttpUtils
        initOKhttpClient();
    }

    private void initOKhttpClient() {
        OkHttpClient okHttpClient = new OkHttpClient
                .Builder()
                .connectTimeout(10000L, TimeUnit.MICROSECONDS)
                .readTimeout(10000L, TimeUnit.MICROSECONDS)
                .build();

    }
}
